Static implemention of common maths functions - just a wrapper for .NET's 'Math'.


Properties


Pi

float Pi

Gets the value of PI.


Methods


ArcCos

static float ArcCos(Single value)

Calculates the Arc Cosine of the specified value.


ArcSin

static float ArcSin(Single value)

Calculates the Arc Sine of the specified value.


ArcTan

static float ArcTan(Single value)

Calculates the Arc Tan of the specified value.


ArcTan2

static float ArcTan2(Single y, Single x)

Calculates the Arc Tan of y/x.


Clamp

static int Clamp(int value, int min, int max)

Ensura value is between two numbers.


Cos

static float Cos(Single radians)

Calculates the cosine of the specified angle.


Cosh

static float Cosh(Single radians)

Calculates the hyperbolic cosine of the specified angle.


DegreesToRadians

static float DegreesToRadians(Single degrees)

Converts the angle from degrees to radians.


Exp

static float Exp(Single x)

Calculates the value of e to the power x.


Log

static float Log(Single x)

Calculates the natural logarithm (base e) of x.


Log10

static float Log10(Single x)

Calculates the base-10 logarithm of x.


Max

static int Max(int val1, int val2)

Returns larger of two numbers.


Min

static int Min(int val1, int val2)

Returns smaller of two numbers.


RadiansToDegrees

static float RadiansToDegrees(Single radians)

Converts the angle from radians to degrees.


RaiseToPower

static float RaiseToPower(Single fbase, Single exponent)

Calculates the base raised to the power of the exponent.


Sin

static float Sin(Single radians)

Calculates the sine of the angle.


Sinh

static float Sinh(Single radians)

Calculates the hyperbolic sine of the specified angle.


Sqrt

static float Sqrt(Single value)

Calculates the square root of the value.


Tan

static float Tan(Single radians)

Calculates the tangent of the angle.


Tanh

static float Tanh(Single radians)

Calculates the hyperbolic tangent of the specified angle.